package com.blazer.a;

import java.util.Random;

public class random {
    public static void main(String[] args) {
        //random随机数
        Random randomm=new Random();
        int data=randomm.nextInt();
        System.out.println(data+"data");
        //1-10随机数 ==》(0-9)+1
//nextint(bound)=>0-(bound-1)
        int dataa=randomm.nextInt(10)+1;

        System.out.println(dataa);
//100-999
        int dataa1=randomm.nextInt(900)+100;
        System.out.println(dataa1);
        //1-100;
        int daaa=randomm.nextInt(100)+1;
    }
}
